//
//  TopNRCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-29.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "TopNRCell.h"

@implementation TopNRCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        // Initialization code
        [self setCell];
    }
    return self;
}

- (void)dealloc
{
    [super dealloc];
    [_nameLabel release];
    [_decadeLabel release];
    [_ratingLabel release];
    [_directorLabel release];
    [_actorLabel release];
    [_movieTypeLabel release];
    [_releaseDateLabel release];
    [_releaseLocationLabel release];
    [_remarkLabel release];

}


- (void)setCell
{
//    UIImageView *BigImageView = [[UIImageView alloc]init];
//    BigImageView.frame = CGRectMake(0, 0, self.frame.size.width, 120);
//    BigImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"big.png"]];
//    [self addSubview:BigImageView];
//    [BigImageView release];
//    self.BigpicView = BigImageView;
    
    //图片
    UIImageView *postView = [[UIImageView alloc]init];
    postView.frame = CGRectMake(10, 20, 80, 110);
    [self addSubview:postView];
    [postView release];
    self.postView = postView;
    
    //标题
    UILabel *nameLabel = [[UILabel alloc]init];
    nameLabel.frame = CGRectMake(100, 5, 100, 30);
    nameLabel.font = [UIFont boldSystemFontOfSize:14];
    [self addSubview:nameLabel];
    [nameLabel release];
    self.nameLabel = nameLabel;
    
    //年份
    UILabel *decadeLabel = [[UILabel alloc]init];
    decadeLabel.frame = CGRectMake(200, 5, 50, 30);
    decadeLabel.font = [UIFont boldSystemFontOfSize:14];
    [self addSubview:decadeLabel];
    [decadeLabel release];
    self.decadeLabel = decadeLabel;
    
    //评分
    UILabel *ratingLabel = [[UILabel alloc]init];
    ratingLabel.frame = CGRectMake(250, 5, 50, 30);
    ratingLabel.font = [UIFont boldSystemFontOfSize:14];
    [self addSubview:ratingLabel];
    [ratingLabel release];
    self.ratingLabel = ratingLabel;
    
    
    //导演
    UILabel *directorLabel = [[UILabel alloc]init];
    directorLabel.frame = CGRectMake(100, 40, 200, 20);
    directorLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:directorLabel];
    [directorLabel release];
    self.directorLabel = directorLabel;
    
    //主演
    
    UILabel *actorLabel = [[UILabel alloc]init];
    actorLabel.frame = CGRectMake(100, 70, 200, 20);
    actorLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:actorLabel];
    [actorLabel release];
    self.actorLabel = actorLabel;
    
    
    //类型
    UILabel *movieTypeLabel = [[UILabel alloc]init];
    movieTypeLabel.frame = CGRectMake(100, 100, 200, 20);
    movieTypeLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:movieTypeLabel];
    [movieTypeLabel release];
    self.movieTypeLabel = movieTypeLabel;
    
    //年份地点
    UILabel *releaseDateLabel = [[UILabel alloc]init];
    releaseDateLabel.frame = CGRectMake(100, 130, 150, 20);
    releaseDateLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:releaseDateLabel];
    [releaseDateLabel release];
    self.releaseDateLabel = releaseDateLabel;
    
    UILabel *releaseLocationLabel = [[UILabel alloc]init];
    releaseLocationLabel.frame = CGRectMake(210, 130, 100, 20);
    releaseLocationLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:releaseLocationLabel];
    [releaseLocationLabel release];
    self.releaseLocationLabel = releaseLocationLabel;
    

    //摘要
    UILabel *remarkLabel = [[UILabel alloc]init];
    remarkLabel.frame = CGRectMake(10, 160, 300, 60);
    remarkLabel.font = [UIFont boldSystemFontOfSize:14];
    [remarkLabel setNumberOfLines:0];
    [self addSubview:remarkLabel];
    [remarkLabel release];
    self.remarkLabel = remarkLabel;

    

}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
